
<!DOCTYPE html PUBLIC "-//W3C//XHD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/XHD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>会员登录</title>
<meta name="keywords" content="旅游，旅游网，自助游，跟团游，公司旅游"/>
<meta name="description" content="旅游，旅游网，自助游，跟团游，公司旅游"/>
<!--[if lte IE 6]>
<script src="/js/transparentbng.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('ul,img,li,input,b,div,a,*');//IE6 png透明解决方案
</script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<link rel="stylesheet" type="text/css" href="css/login.css"/>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<script type="text/javascript">

function doLogin(){
	
	var phone=$("#phone").val();
	var password=$("#password").val();
	if (phone==""){
		$("#phone").focus();
		$("#phone_msg").html("请输入手机号！")
		return
	}else{
		$("#phone_msg").html("")
	}
	if (password==""){
		$("#password").focus();
		$("#password_msg").html("请输入密码！")
		return
	}else{
		$("#password_msg").html("")
	}
	
	$.ajax({   
           url:'doLogin',   
           type:'post',   
           dataType:'json',//服务器端返回的数据格式是json
		   data: {
			   "phone":phone,
			   "password":password
		   },//发给服务器端的数据
           success:function(data){   //data:服务器端返回给浏览器端的数据
		   		if(data.code==0){
		   			location.href='index.html';
		   		}else{
		   			//alert("用户名或密码错误，请重新登录！");
		   			$("#msg").html("用户名或密码错误，请重新登录！")
		   		}
           },
		   error:function (XMLHttpRequest, textStatus, errorThrown) {
        	   		alert(XMLHttpRequest);
        	   		alert(textStatus);
        	   		alert(errorThrown);
           }
           
       });
}

</script>
</head>
<body>
	<div id="header">
		<div class="wrapper clearfix">
			<div class="links">
				<ul class="clearfix">
					<li><a href="http://www.cntour.cn/usercenter/login.aspx">会员登录</a></li>
					<li><a href="http://www.cntour.cn/usercenter/reg.aspx">免费注册</a></li>
					<li><a href="http://www.cntour.cn/">网站首页</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div id="main">
		<div class="wrapper clearfix">
			<div class="wrapBox">
				<div class="inner">
					<div class="hd"><b>会员登录</b></div>
					<div class="do clearfix">
						<div class="signLeft">
							<form method="post" >
								<ul class="signs clearfix">
									<li><label for="U_Name">手机号：</label><input type="text" name="U_Name" id="phone" class="inputText" /><div id="phone_msg" style="color: red"></div></li>
									<li><label for="U_Pass">密码：</label><input type="password" name="U_Pass" id="password" class="inputText" /><div id="password_msg" style="color: red"></div></li>
									<li class="btn"><label for="">&nbsp;</label><input name="submit1" type="button" class="inputBtn login" value=" " onclick="doLogin()"/></li>
									<div id="msg" style="color: red"></div>
									<li class="texts"><label for="">&nbsp;</label>忘记登录密码？<a href="http://www.cntour.cn/usercenter/forgetpwd.aspx">找回密码</a></li>
								</ul>
							</form>
						</div>
						<div class="signRight">
							<h2 class="title">没有账号？立即注册</h2>
							<ul class="applogin clearfix">
								<li><a href="http://www.cntour.cn/usercenter/reg.aspx" class="reg" title="会员注册">&nbsp;</a></li>
							</ul>
							<h2 class="title">使用合作网站帐号登录</h2>
							<ul class="applogin clearfix">
<li><a href="http://www.cntour.cn/loginsina/" class="sina" title="新浪微博">&nbsp;</a></li><li><a href="http://www.cntour.cn/loginali/" class="alipay" title="支付宝">&nbsp;</a></li><li><a href="http://www.cntour.cn/loginqq/" class="qq" title="腾讯QQ">&nbsp;</a></li>							</ul>
							<h2 class="title">为什么要注册会员？</h2>
							<ul class="note clearfix">
								<li>预订酒店、景点、旅游线路赢点评奖金</li>
								<li>会员预订价绝不高于前台现付价</li>
								<li>24小时客服热线随时为您提供服务</li>
								<li>我爱旅游、我爱生活，我们共同的爱</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--页脚脚本开始-->
	<div id="footerJs">
		<script type="text/javascript" src="/sys/js/jquery.js"></script>
		<script type="text/javascript" src="/sys/jS/jquery.validate.js"></script>
		<script type="text/javascript" src="/sys/jS/jquery.validate.check.js"></script>
		<script type="text/javascript">
		$(function(){
			$("#TourExForm").validate({
				rules:{
					U_Name:{required:true},
					U_Pass:{required:true}
				},
				messages: {
					U_Name:{required:'请填写帐号'},
					U_Pass:{required:'请填写密码'}
				}
			});
			if(0>=5)
			{
				$('#ProofContainer').show();
				$('#Proof').rules('add',{required: true,remote: {url:'/sys/ajax/check.ashx',type:'get',dataType:'json',data:{'checktext':function(){return $('#Proof').val();}},cache:false},messages:{required:'请填写验证码!',remote:function(){get_Code('/');return '验证码错误!'}}});
			}else{
				$('#ProofContainer').remove();
			}
		});
		</script>
	</div>
	<!--页脚脚本结束-->
</body>
</html>